package com.example.wuyeguanli.entiy;

// 重构: 字段已根据后端更新，并将LocalDateTime改为String以兼容旧版Android API
public class FacilityRental {

    private String workOrderId;
    private String facilityId;
    private String ownerPhone;
    private String rentalInfo;
    private String startTime; // LocalDateTime -> String
    private String endTime;   // LocalDateTime -> String

    public FacilityRental(String workOrderId, String facilityId, String ownerPhone, String rentalInfo, String startTime, String endTime) {
        this.workOrderId = workOrderId;
        this.facilityId = facilityId;
        this.ownerPhone = ownerPhone;
        this.rentalInfo = rentalInfo;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    // Getters and Setters
    public String getWorkOrderId() {
        return workOrderId;
    }

    public void setWorkOrderId(String workOrderId) {
        this.workOrderId = workOrderId;
    }

    public String getFacilityId() {
        return facilityId;
    }

    public void setFacilityId(String facilityId) {
        this.facilityId = facilityId;
    }

    public String getOwnerPhone() {
        return ownerPhone;
    }

    public void setOwnerPhone(String ownerPhone) {
        this.ownerPhone = ownerPhone;
    }

    public String getRentalInfo() {
        return rentalInfo;
    }

    public void setRentalInfo(String rentalInfo) {
        this.rentalInfo = rentalInfo;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
}